<div style="width:1024px; MARGIN-RIGHT: auto; MARGIN-LEFT: auto;">
    <div class="login-form" style="height: 80px;">
        <input class="btn btn-primary btn-team-create" type="button" value="创建比赛" style="width: 300px; float:left; margin: 0px 10px;" />
    </div>
</div>

<div style="width:1024px; MARGIN-RIGHT: auto; MARGIN-LEFT: auto;">
    <div class="login-form" style="">
        <table width="100%">

<volist name="matchList" id="matchList">
        <tr>
        <td style="text-align:left;">
            <span>{$matchList.name}</span>
        </td>
        <td style="text-align:right;">

<if condition="$matchList.attendence eq 0">
            <a href="./index.php?m=Home&c=Match&a=join&match_id={$matchList.match_id}&team_id={$matchList.team_id}&player_id={$matchList.player_id}"><span>参加</span></a>
</if>

            <a href="./index.php?m=Home&c=Match&a=view&match_id={$matchList.match_id}&team_id={$matchList.team_id}&player_id={$matchList.player_id}"><span>进入比赛</span></a>

        </td>
        </tr>
</volist>
        
        </table>
    </div>
</div>

<script type="text/javascript">
    $('.btn-team-create').click( function() {
        window.location="./index.php?m=Home&c=Match&a=create";
    });
</script>

